<?php
/**
 * Author: LaiGuiming
 * Time: [time]
 * Copyright (C) 2016 Longyan Wehome Message CO.,LTD.
 */

namespace app\admin\model;
use think\Model;

/**
 * [comment]模型
 * Class [ModelName]
 * @package app\admin\model
 */
class [ModelName] extends Model
{
    protected $insert = ['status' => 0,'ct'[MtField]];

[MtFun]

    protected function setCtAttr()
    {
        return  date( "Y-m-d H:i:s ");
    }

    // 追加属性
    protected $append = [
[AppendField]
    ];

[AppendFun]
}